package com.huey.tl.threads;

import org.junit.Test;

/**
 * ┏┓　　　┏┓
 * ┏┛┻━━━┛┻┓
 * ┃　　　　　　　┃
 * ┃　　　━　　　┃
 * ┃　┳┛　┗┳　┃
 * ┃　　　　　　　┃
 * ┃　　　┻　　　┃
 * ┃　　　　　　　┃
 * ┗━┓　　　┏━┛
 * ┃　　　┃ 神兽保佑
 * ┃　　　┃ 代码无BUG！
 * ┃　　　┗━━━┓
 * ┃　　　　　　　┣┓
 * ┃　　　　　　　┏┛
 * ┗┓┓┏━┳┓┏┛
 * ┃┫┫　┃┫┫
 * ┗┻┛　┗┻┛
 *
 * @author huey
 * @Description : 线程Runnable测试
 * @Date Created in 2018/9/20 13:56
 */
public class RunnableTest implements Runnable {


    @Test
    public void test1() {
        new Thread(new RunnableTest()).start();
    }

    /**
     * When an object implementing interface <code>Runnable</code> is used
     * to create a threads, starting the threads causes the object's
     * <code>run</code> method to be called in that separately executing
     * threads.
     * <p>
     * The general contract of the method <code>run</code> is that it may
     * take any action whatsoever.
     *
     * @see Thread#run()
     */
    @Override
    public void run() {
        System.out.println("huey runnable");
    }
}
